<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ListMarchamoTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:form styleClass="jsfcrud_list_form">
                <h:panelGroup id="messagePanel" layout="block">
                    <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                </h:panelGroup>
                <h:outputText escape="false" value="#{bundle.ListMarchamoEmpty}" rendered="#{marchamoController.items.rowCount == 0}"/>
                <h:panelGroup rendered="#{marchamoController.items.rowCount > 0}">
                    <h:outputText value="#{marchamoController.pagination.pageFirstItem + 1}..#{marchamoController.pagination.pageLastItem + 1}/#{marchamoController.pagination.itemsCount}"/>&nbsp;
                    <h:commandLink action="#{marchamoController.previous}" value="#{bundle.Previous} #{marchamoController.pagination.pageSize}" rendered="#{marchamoController.pagination.hasPreviousPage}"/>&nbsp;
                    <h:commandLink action="#{marchamoController.next}" value="#{bundle.Next} #{marchamoController.pagination.pageSize}" rendered="#{marchamoController.pagination.hasNextPage}"/>&nbsp;
                    <h:dataTable value="#{marchamoController.items}" var="item" border="0" cellpadding="2" cellspacing="0" rowClasses="jsfcrud_odd_row,jsfcrud_even_row" rules="all" style="border:solid 1px">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_idMarchamo}"/>
                            </f:facet>
                            <h:outputText value="#{item.idMarchamo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_cedula}"/>
                            </f:facet>
                            <h:outputText value="#{item.cedula}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_nombre1}"/>
                            </f:facet>
                            <h:outputText value="#{item.nombre1}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_nombre2}"/>
                            </f:facet>
                            <h:outputText value="#{item.nombre2}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_apellido1}"/>
                            </f:facet>
                            <h:outputText value="#{item.apellido1}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_apellido2}"/>
                            </f:facet>
                            <h:outputText value="#{item.apellido2}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_estadoCivil}"/>
                            </f:facet>
                            <h:outputText value="#{item.estadoCivil}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_telefono1}"/>
                            </f:facet>
                            <h:outputText value="#{item.telefono1}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_telefono2}"/>
                            </f:facet>
                            <h:outputText value="#{item.telefono2}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_email}"/>
                            </f:facet>
                            <h:outputText value="#{item.email}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_lugarDeTrabajo}"/>
                            </f:facet>
                            <h:outputText value="#{item.lugarDeTrabajo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_placaVehiculo}"/>
                            </f:facet>
                            <h:outputText value="#{item.placaVehiculo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_marcaVehiculo}"/>
                            </f:facet>
                            <h:outputText value="#{item.marcaVehiculo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_modeloVehiculo}"/>
                            </f:facet>
                            <h:outputText value="#{item.modeloVehiculo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_anioVehiculo}"/>
                            </f:facet>
                            <h:outputText value="#{item.anioVehiculo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListMarchamoTitle_colorVehiculo}"/>
                            </f:facet>
                            <h:outputText value="#{item.colorVehiculo}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="&nbsp;"/>
                            </f:facet>
                            <h:commandLink action="#{marchamoController.prepareView}" value="#{bundle.ListMarchamoViewLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{marchamoController.prepareEdit}" value="#{bundle.ListMarchamoEditLink}"/>
                            <h:outputText value=" "/>
                            <h:commandLink action="#{marchamoController.destroy}" value="#{bundle.ListMarchamoDestroyLink}"/>
                        </h:column>
                    </h:dataTable>
                </h:panelGroup>
                <br />
                <h:commandLink action="#{marchamoController.prepareCreate}" value="#{bundle.ListMarchamoCreateLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ListMarchamoIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
